home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 1138 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.7 KB

  1. From: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  2. Date: Fri, 4 Mar 94 10:39:12 +0100
  3. Message-Id: <9403040939.AA02286@issan.informatik.uni-dortmund.de>
  4. To: mint@atari.archive.umich.edu
  5. In-Reply-To: <199403032349.SAA04066@terminator.rs.itd.umich.edu> (entropy@terminator.rs.itd.umich.edu)
  6. Subject: Re: another 1.10 job control bug?
  7.  
  8. "Nicholas S Castellano" <entropy@terminator.rs.itd.umich.edu> writes:
  9.  
  10. |>> i think the problem was when there are several processes in a group the
  11. |>> leader isn't always the one that exits last, and then you could no longer
  12. |>> signal the others from the terminal after that. (^c, ^z, ...)  of course
  13. |>> you could say the parent should always catch SIGCHLD and then TIOCSPGRP
  14. |>> whenever the first process in a pipe (for example) exited but somehow i
  15. |>> doubt thats a real solution...  (although i did put such a hack in ksh
  16. |>> first... :)
  17.  
  18. |> That is exactly the problem, but I'm not sure I like the proposed
  19. |> solution.
  20.  
  21. I'm using this solution for quite a long time now, without any
  22. problems.
  23.  
  24. |> Is there any situation where a process group leader exits and you
  25. |> still want processes in that group to be allowed to access the tty?
  26.  
  27. Bash sets up a pipeline by making the first process the group leader.
  28. So if you pipe the output of a process into less, for example, this
  29. process will almost always exit before less. I think there is no
  30. better solution except adding sessions to MiNT. And bash is supposed to
  31. be POSIX complient.
  32.  
  33. ----------------------------------------------------------------------
  34. Andreas Schwab                                  "And now for something
  35. schwab@ls5.informatik.uni-dortmund.de            completely different"
  36.